<template>
    <div class="goods-list">

        <router-link to="/home/goodsinfo/1" class="goods-item">
            <img src="https://img12.360buyimg.com/n1/s450x450_jfs/t1/10258/31/11947/205232/5c74b21eE06b4a484/7abac18ca0e45f30.jpg"
                alt="">
            <h3 class="title">三星 Galaxy S10+皓玉白3D超声波屏下指纹超感官全视屏双卡双待全网通4G游戏手机</h3>
            <div class="info">
                <p class="price">
                    <span class="now">￥6999.00</span>
                    <span class="old">￥7999.00</span>
                </p>
                <p class="sell">
                    <span class="">热卖中</span>
                    <span class="">剩余60件</span>
                </p>
            </div>
        </router-link>

        <div class="goods-item">
            <img src="https://img12.360buyimg.com/n1/s450x450_jfs/t1/10258/31/11947/205232/5c74b21eE06b4a484/7abac18ca0e45f30.jpg"
                alt="">
            <h3 class="title">三星 Galaxy S10+ 皓玉白3D超声波屏下指纹超感官全视屏双卡双待全网通4G游戏手机</h3>
            <div class="info">
                <p class="price">
                    <span class="now">￥6999.00</span>
                    <span class="old">￥7999.00</span>
                </p>
                <p class="sell">
                    <span class="">热卖中</span>
                    <span class="">剩余60件</span>
                </p>
            </div>
        </div>

        <div class="goods-item">
            <img src="https://img12.360buyimg.com/n1/s450x450_jfs/t1/10258/31/11947/205232/5c74b21eE06b4a484/7abac18ca0e45f30.jpg"
                alt="">
            <h3 class="title">三星 Galaxy S10+ 皓玉白3D超声波屏下指纹超感官全视屏双卡双待全网通4G游戏手机</h3>
            <div class="info">
                <p class="price">
                    <span class="now">￥6999.00</span>
                    <span class="old">￥7999.00</span>
                </p>
                <p class="sell">
                    <span class="">热卖中</span>
                    <span class="">剩余60件</span>
                </p>
            </div>
        </div>

          <div class="goods-item">
            <img src="https://img12.360buyimg.com/n1/s450x450_jfs/t1/10258/31/11947/205232/5c74b21eE06b4a484/7abac18ca0e45f30.jpg"
                alt="">
            <h3 class="title">三星 Galaxy S10+ 皓玉白3D超声波屏下指纹超感官全视屏双卡双待全网通4G游戏手机</h3>
            <div class="info">
                <p class="price">
                    <span class="now">￥6999.00</span>
                    <span class="old">￥7999.00</span>
                </p>
                <p class="sell">
                    <span class="">热卖中</span>
                    <span class="">剩余60件</span>
                </p>
            </div>
        </div>

          <div class="goods-item">
            <img src="https://img12.360buyimg.com/n1/s450x450_jfs/t1/10258/31/11947/205232/5c74b21eE06b4a484/7abac18ca0e45f30.jpg"
                alt="">
            <h3 class="title">三星 Galaxy S10+ 皓玉白3D超声波屏下指纹超感官全视屏双卡双待全网通4G游戏手机</h3>
            <div class="info">
                <p class="price">
                    <span class="now">￥6999.00</span>
                    <span class="old">￥7999.00</span>
                </p>
                <p class="sell">
                    <span class="">热卖中</span>
                    <span class="">剩余60件</span>
                </p>
            </div>
        </div>
    </div>
</template>

<script>
    //导入评论子组件
    import comment from '../subcomponents/comment.vue'
    import {
        Toast
    } from 'mint-ui'
    export default {
        data() {
            return {

            }
        },
        created() {

        },
        methods: {

        }

    }
</script>

<style lang="less" scoped>
    .goods-list {
        display: flex;
        flex-wrap: wrap;
        padding: 7px;
        justify-content: space-between;

        .goods-item {
            width: 49%;
            border: 1px solid #ccc;
            box-shadow: 0 0 8px #ccc;
            margin: 3px 0;
            padding: 2px;
            display: flex;
            flex-direction: column;
            justify-content: space-between;
            min-height: 305px;
            img {
                width: 100%;
            }

            .title {
                font-size: 14px;
            }

            .info{
                background-color: #eee;
                p{
                    margin: 0;
                    padding: 5px;
                }
                .price{
                    .now{
                        color: red;
                        font-size: 16px;
                    }
                    .old{
                        text-decoration: line-through;
                         font-size: 12px;
                         margin-left: 10px
                    }
                }
                .sell{
                    display: flex;
                    justify-content: space-between;
                    font-size: 12px;

                }
            }
        }

    }
</style>